Another rename.
authorrobertl <robertl>
Mon, 30 Oct 2006 20:42:18 +0000 (20:42 +0000)
committerrobertl <robertl>
Mon, 30 Oct 2006 20:42:18 +0000 (20:42 +0000)
text.c

diff --git a/text.c b/text.c
index ddd56bb16b65a0f3e4d449e848cdc81885da514c..c22f37cf7d96680c0517d3b1bd35d2cb0563572f 100644 (file)
--- a/text.c
+++ b/text.c
@@ -28,7 +28,7 @@ static gbfile *file_out;
 static short_handle mkshort_handle;
 
 static char *suppresssep = NULL;
-static char *encrypt = NULL;
+static char *txt_encrypt = NULL;
 static char *includelogs = NULL;
 static char *degformat = NULL;
 static char *altunits = NULL;
@@ -40,7 +40,7 @@ arglist_t text_args[] = {
        { "nosep", &suppresssep, 
                "Suppress separator lines between waypoints", 
                NULL, ARGTYPE_BOOL, ARG_NOMINMAX },
-       { "encrypt", &encrypt,
+       { "encrypt", &txt_encrypt,
                "Encrypt hints using ROT13", NULL, ARGTYPE_BOOL, ARG_NOMINMAX },
        { "logs", &includelogs,
                "Include groundspeak logs if present", NULL, ARGTYPE_BOOL, ARG_NOMINMAX },
@@ -130,7 +130,7 @@ text_disp(const waypoint *wpt)
                        }
                if (wpt->gc_data.hint) {
                        char *hint = NULL;
-                       if ( encrypt ) 
+                       if ( txt_encrypt ) 
                                hint = rot13( wpt->gc_data.hint );
                        else
                                hint = xstrdup( wpt->gc_data.hint );
@@ -206,7 +206,7 @@ text_disp(const waypoint *wpt)
                                encstr = xml_attribute( logpart, "encoded" );
                                encoded = (encstr[0] != 'F');
                                
-                               if ( encrypt && encoded ) {
+                               if ( txt_encrypt && encoded ) {
                                        s = rot13( logpart->cdata );
                                }
                                else {